﻿using Rsd.Dudu.Core;
using Rsd.Faith.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rsd.Faith.Bank.Core
{
    public interface IBankService:IService
    {
        /// <summary>
        /// 根据存款计划 执行存款
        /// </summary>
        /// <param name="cunKuan"></param>
        /// <returns></returns>
        int BankSavings(BankCunKuanJiHuaModel cunKuan);
        
        /// 核算存款利息
        /// </summary>
        /// <param name="cunKuan"></param>
        /// <returns></returns>
        int SettleInterest(BankCunKuanJiHuaModel cunKuan);

        /// <summary>
        /// 指定存款计划 结息入分户账 记流水
        /// </summary>
        /// <param name="cunKuan"></param>
        /// <returns></returns>
        int SettleRecording(BankCunKuanJiHuaModel cunKuan);

        /// <summary>
        /// 核算各账户 分户利息合计金额
        /// </summary>
        /// <returns></returns>
        int SumBookInterest();

        /// <summary>
        /// 核算 指定属期 账目 分户利息合计金额
        /// </summary>
        /// <param name="suoShuQi"></param>
        /// <returns></returns>
        int SumReportInterest(string suoShuQi);
    }
}
